<?
/**
 * Category database object
 */
class CategoryDbo extends HistoryTimelineDbo {

/**
 * constructor - define object property -> table mappings
 */
public function __construct() {
	// parent
	parent::__construct();
	// table name
	$this->setDatabaseTable('category_ids');
	// object properties
	$this->propertyAdd('Color');
	$this->propertyAdd('Desc', 'Description');
	$this->propertyAdd('Id');
	$this->propertyAdd('Tag');
	// Set id property
	$this->setIdProperty('Id');
	// Friendly Descriptions
	$this->setPropertyDescription('Desc', 'Description');
	// Date properties
	// Numeric properties
	$this->setPropertyIsNumeric('Id');
	// Set property lengths
	$this->setPropertyMaxLength('Color',       6);
	$this->setPropertyMaxLength('Description', 255);
	$this->setPropertyMaxLength('Id',          10);
	$this->setPropertyMaxLength('Tag',         100);
	}
}
?>
